/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.bingxue.edu.management.education.model.req;

import cn.hutool.core.lang.RegexPool;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户导入行数据
 *
 * @author Kils
 * @since 2024-6-17 16:42
 */
@Data
@Schema(description = "报名权限导入行数据")
@EqualsAndHashCode(callSuper = false)
public class EnrollPermissionImportRowReq {

    @NotBlank(message = "家长手机号不能为空")
    @Schema(description = "家长手机号")
    @Pattern(regexp = "^$|" + RegexPool.MOBILE, message = "存在手机号格式错误")
    private String parentPhone;

    @NotBlank(message = "学生姓名不能为空")
    @Schema(description = "学生姓名")
    private String studentName;

    @NotBlank(message = "科目不能为空")
    @Schema(description = "科目(字典code)")
    private String subject;

    @Schema(description = "入学年份")
    @NotNull(message = "入学年份不能为空")
    private Integer admissionYear;

    @Schema(description = "等级(数值)")
    @NotNull(message = "等级(数值)不能为空")
    private Integer classLevel;

}
